package com.dream.service.user.domain.request;

import com.dream.service.user.domain.model.UserReturnInfoModel;

import java.io.Serializable;
import java.util.List;

/**
 * Created by kangd on 2016/5/6.
 */
public class UserSelectCondition implements Serializable {

    private Integer user_id; //用户自增id

    private String pin; //pin

    private String nickname; //昵称

    private String login_email; //登录邮箱

    private UserReturnInfoModel return_info; //返回信息，用于第三方登录

    // 是否是精准匹配
    private Integer isExact;  //是否是精准匹配

    //多条

    private List<Integer> user_type; //用户类型

    private List<Integer> user_level; //用户等级

    private List<Integer> status_code; //状态码

    private List<Integer> login_type; //登录类型，具体到哪个平台

    private List<Integer> isHistoricalUser;

    /**
     *范围
     */

    private  Integer user_score_start; //用户评分 起始

    private  Integer user_score_end; //用户评分 终止

    private String create_time_start; //创建时间 起始

    private String create_time_end; //创建时间 终止

    private String update_time_start; //更新时间 起始

    private String update_time_end; //更新时间 终止

    /**
     * 分页
     */
    private Integer pageNum; // 页码

    private Integer pageSize; // 页码容量

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public String getPin() {
        return pin;
    }

    public void setPin(String pin) {
        this.pin = pin;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getLogin_email() {
        return login_email;
    }

    public void setLogin_email(String login_email) {
        this.login_email = login_email;
    }

    public UserReturnInfoModel getReturn_info() {
        return return_info;
    }

    public void setReturn_info(UserReturnInfoModel return_info) {
        this.return_info = return_info;
    }

    public Integer getIsExact() {
        return isExact;
    }

    public void setIsExact(Integer isExact) {
        this.isExact = isExact;
    }

    public List<Integer> getUser_type() {
        return user_type;
    }

    public void setUser_type(List<Integer> user_type) {
        this.user_type = user_type;
    }

    public List<Integer> getUser_level() {
        return user_level;
    }

    public void setUser_level(List<Integer> user_level) {
        this.user_level = user_level;
    }

    public List<Integer> getStatus_code() {
        return status_code;
    }

    public void setStatus_code(List<Integer> status_code) {
        this.status_code = status_code;
    }

    public List<Integer> getLogin_type() {
        return login_type;
    }

    public void setLogin_type(List<Integer> login_type) {
        this.login_type = login_type;
    }

    public List<Integer> getIsHistoricalUser() {
        return isHistoricalUser;
    }

    public void setIsHistoricalUser(List<Integer> isHistoricalUser) {
        this.isHistoricalUser = isHistoricalUser;
    }

    public Integer getUser_score_start() {
        return user_score_start;
    }

    public void setUser_score_start(Integer user_score_start) {
        this.user_score_start = user_score_start;
    }

    public Integer getUser_score_end() {
        return user_score_end;
    }

    public void setUser_score_end(Integer user_score_end) {
        this.user_score_end = user_score_end;
    }

    public String getCreate_time_start() {
        return create_time_start;
    }

    public void setCreate_time_start(String create_time_start) {
        this.create_time_start = create_time_start;
    }

    public String getCreate_time_end() {
        return create_time_end;
    }

    public void setCreate_time_end(String create_time_end) {
        this.create_time_end = create_time_end;
    }

    public String getUpdate_time_start() {
        return update_time_start;
    }

    public void setUpdate_time_start(String update_time_start) {
        this.update_time_start = update_time_start;
    }

    public String getUpdate_time_end() {
        return update_time_end;
    }

    public void setUpdate_time_end(String update_time_end) {
        this.update_time_end = update_time_end;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getFrom() {
        if(pageNum !=null && pageSize!= null){
            return (pageNum-1) * pageSize;
        }
        return null;
    }

    public Integer getSize() {
        return pageSize;
    }

}
